package com.sheyu.mall.product.service;

import com.sheyu.mall.product.dao.attr.AttrDao;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

import java.util.ArrayList;
import java.util.List;

/**
 * @author sheyu
 * @Desciption:
 * @date 2020/10/10 8:37 上午
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class Attr {

    @Autowired
    AttrDao attrDao;

    @Test
    public void testAttrByCatelogIds(){
        List<Long> catelogIds = new ArrayList<>();
        catelogIds.add(2L);
        Long attrIds = attrDao.selectByCateIdBySQL(catelogIds.get(0));

        System.out.println(attrIds);
    }

}
